package com.probox.common.core.enums;


public enum WechatInformationTypeEnum {
    //0:进行中/1:已付款/2：成交/-1:参与失败
    orderNo("orderNo","订单编号"),
    orderNoStr("orderNoStr","订单号"),
    createTime("createTime","下单时间"),
    proName("proName","商品名称"),
    orderMoney("orderMoney","订单金额"),
    consigneeName("consigneeName","收货人"),
    expressCompany("expressCompany","快递公司"),
    expressNo("expressNo","快递单号"),
    deliverTime("deliverTime","发货时间"),
    cancelTime("cancelTime","取消时间"),
    remark("remark","备注"),
    warmPrompt("warmPrompt","温馨提示");


    private WechatInformationTypeEnum(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for(WechatInformationTypeEnum oe: WechatInformationTypeEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }
}
